package com.stylefeng.guns.modular.pay.exception;

/**
 * 业务异常
 * @author Administrator
 *
 */


public class ApiException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String retCode;
	private String errMsg;
	
	public ApiException() {

	}
	
	public ApiException(String retCode,String errMsg) {
		this.retCode = retCode;
		this.errMsg = errMsg;
	}
	
	
	
	public ApiException(ResultEnum e) {
		this.retCode = e.getCode();
		this.errMsg = e.getMsg();
	}

	public String getRetCode() {
		return retCode;
	}
	public void setRetCode(String retCode) {
		this.retCode = retCode;
	}
	public String getErrMsg() {
		return errMsg;
	}
	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}

}
